using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Staff
    {
        public int StaffNum { get; set; }
        public string StaffName { get; set; }
        public string StaffDep { get; set; }

        public Staff(int StaffNum, string StaffName, string StaffDep)
        {
            this.StaffNum = StaffNum;
            this.StaffName = StaffName;
            this.StaffDep = StaffDep;
            Console.WriteLine("员工是{0} 我的名字是 {1} 我的部门是 {2}", this.StaffNum, this.StaffName, this.StaffDep);
        }

        public Staff()
        {

        }

        public void SayHi()
        {
            Console.WriteLine("员工是{0} 我的名字是 {1} 我的部门是 {2}", this.StaffNum, this.StaffName, this.StaffDep);
        }
    }
}
